<template>
  <div id="app">
    <p>23430104 董宇轩</p>
    <router-view></router-view>
    <tab-bar>
      <tab-bar-item path="/page1">
        <img src="./assets/home.svg" slot="item-icon" />
        <img src="./assets/home_active.svg" slot="item-icon-active" />
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item path="/page2">
        <img src="./assets/category.svg" slot="item-icon" />
        <img src="./assets/category_active.svg" slot="item-icon-active" />
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item path="/page3">
        <img src="./assets/shopcart.svg" slot="item-icon" />
        <img src="./assets/shopcart_active.svg" slot="item-icon-active" />
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item path="/page4">
        <img src="./assets/profile.svg" slot="item-icon" />
        <img src="./assets/profile_active.svg" slot="item-icon-active" />
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>

<script>
import TabBar from "./components/TabBar.vue";
import TabBarItem from "./components/TabBarItem.vue";

export default {
  name: "App",
  components: {
    TabBar,
    TabBarItem,
  },
};
</script>

<style>
</style>
